package com.ccit.service;

import com.ccit.domain.*;

import java.util.List;

public interface AttendanceService {

    public boolean add(AttendanceType attendance);

    /**
     * 按id查询
     * @param id
     * @return
     */
    public List<Attendance> getById(Integer id);

    /**
     * 按id删除
     * @param id
     * @return
     */
    public boolean delete(Integer id);

    boolean deleteByIds(List<Integer> ids);


    /**
     * 查询全部
     * @return
     */
    public List<Attendance> selectAll();

    /**
     * 查询全部
     * @return
     */
    public List<AttendanceType> selectByDays(Integer id);

    /**
     * 分页查询
     * @param currentPage  当前页码
     * @param pageSize   每页展示条数
     * @return
     */
    PageBean<Attendance> selectByPage(int currentPage, int pageSize);


    /**
     * 多条件分页查询
     * @param
     * @return
     */
    PageBean<Attendance> selectByPageAndCondition(int currentPage, int pageSize,Attendance attendance);

    public boolean update(AttendanceType attendance);
    public Boolean punchCard(AttendanceType attendance);
    AttendanceType getPunchRecord(Integer employeeId,String checkDate);
    List<AttendanceType> getAttendanceByDate(String checkDate);

    List<AttendanceType> selectByEmployeeIdAndDate();






}
